package edu.ptu.acl.service;

import edu.ptu.acl.dto.RoleModuleTreeDto;
import edu.ptu.acl.entity.RoleModule;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LinJC
 * @since 2022-03-15
 */
public interface IRoleModuleService extends IService<RoleModule> {

    List<RoleModuleTreeDto> getTree();

    /**
     * 校验同级部门下同名问题
     * @param parentId 父级id
     * @param name 要插入的name
     * @return
     */
    void validateName(Long parentId,String name);

    void validateRole(Long parentId);

}
